/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Microsoft YaHei", sans-serif;
    background: #f5f1e8;
    color: #171717;
    overflow-x: hidden;
}

/* ----- 鼠标光晕 ----- */
.cursor {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 180, 120, .35), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 5;
}

/* ----- 导航栏 ----- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background: rgba(245, 241, 232, .65);
    backdrop-filter: blur(20px);
    z-index: 20;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.logo:hover {
    opacity: 0.7;
}

/* ----- 导航菜单容器 ----- */
.menu {
    display: flex;
    position: relative;
    gap: 0;
}

.menu a {
    text-decoration: none;
    color: inherit;
    padding: 0 0 8px 0;
    margin-left: 35px;
    position: relative;
    z-index: 2;
}

.menu a:first-child {
    margin-left: 0;
}

.menu a span {
    font-size: 15px;
    color: #555;
    transition: color 0.3s;
    cursor: pointer;
}

.menu a:hover span {
    color: #b8860b;
}

/* ----- 滑块（滑动小条） ----- */
.menu .slider {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #b8860b;
    border-radius: 2px;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    pointer-events: none;
}

/* 激活状态：文字变金色 */
.menu a.active span {
    color: #b8860b;
    font-weight: 600;
}

/* ======================================================
   匠心工艺 - 页面内容
   ====================================================== */

/* ----- 页面容器 ----- */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 90px;
}
.page.active {
    display: block;
}

/* ----- 工艺头部（Hero） ----- */
.process-hero {
    height: 60vh;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -90px;
}

/* 背景层 - 基础图片 */
.process-hero::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: 
        linear-gradient(rgba(23, 23, 23, 0.45), rgba(23, 23, 23, 0.55)),
        url("../img/pexels-cottonbro-3777912.jpg");
    background-size: cover;
    background-position: center;
    animation: heroBgZoom 20s ease-in-out infinite alternate;
    z-index: 1;
}

/* 背景层 - 动态光晕叠加 */
.process-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.15), transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.08), transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 2;
}

/* 背景缩放动画 */
@keyframes heroBgZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.08) translate(-10px, -8px);
    }
    100% {
        transform: scale(1.12) translate(10px, 8px);
    }
}

/* 光晕流动动画 */
@keyframes heroGlow {
    0% {
        opacity: 0.6;
        transform: translateX(-20px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(20px) scale(1.1);
    }
    100% {
        opacity: 0.7;
        transform: translateX(-10px) scale(0.95);
    }
}

/* 额外光晕层 - 浮动光斑 */
.process-hero .floating-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
    animation: floatLight 12s ease-in-out infinite alternate;
}

.process-hero .floating-light:nth-child(1) {
    width: 400px;
    height: 400px;
    background: rgba(201, 168, 76, 0.10);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.process-hero .floating-light:nth-child(2) {
    width: 300px;
    height: 300px;
    background: rgba(255, 215, 140, 0.08);
    bottom: -80px;
    right: -80px;
    animation-delay: -4s;
}

.process-hero .floating-light:nth-child(3) {
    width: 250px;
    height: 250px;
    background: rgba(201, 168, 76, 0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes floatLight {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(60px, -40px) scale(1.2);
        opacity: 0.8;
    }
    66% {
        transform: translate(-30px, 50px) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: translate(40px, -20px) scale(1.1);
        opacity: 0.7;
    }
}

.process-hero-content {
    position: relative;
    z-index: 10;
    padding: 0 8%;
}

/* ----- 白色调流光标题 ----- */
.process-hero h1 {
    font-size: 80px;
    letter-spacing: -4px;
    font-weight: 600;
    /* 白色到金色的流光渐变 */
    background-image: linear-gradient(120deg, 
        #ffffff 0%, 
        #f5e6c8 20%, 
        #d4af37 40%, 
        #f5e6c8 60%, 
        #ffffff 80%, 
        #d4af37 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
    animation: shimmerWhite 5s linear infinite;
}

@keyframes shimmerWhite {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 300% 0;
    }
}

.process-hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* ----- 工艺介绍区 ----- */
.process-intro {
    padding: 80px 8% 60px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.process-intro h2 {
    font-size: 48px;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.process-intro p {
    font-size: 20px;
    line-height: 2;
    color: #666;
}

/* ----- 工艺步骤网格 ----- */
.process-grid {
    padding: 0 8% 100px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.process-item {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s, box-shadow 0.4s;
}

.process-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.process-item .step-number {
    display: inline-block;
    padding: 6px 18px;
    background: #b8860b;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin: 0 0 0 24px;
}

.process-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s;
}
.process-item:hover img {
    transform: scale(1.03);
}

.process-item .info {
    padding: 24px 26px 30px;
}

.process-item .info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-item .info .desc {
    font-size: 15px;
    color: #777;
    line-height: 1.8;
}

/* ----- 工艺特色亮点 ----- */
.process-highlights {
    background: #171717;
    padding: 80px 8%;
    color: white;
    text-align: center;
}

.process-highlights h2 {
    font-size: 48px;
    letter-spacing: -2px;
    margin-bottom: 16px;
    color: white;
}

.process-highlights > p {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 60px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-item {
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, transform 0.3s;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
}

.highlight-item .icon {
    font-size: 42px;
    margin-bottom: 16px;
    display: block;
}

.highlight-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f5f1e8;
}

.highlight-item p {
    font-size: 15px;
    color: #999;
    line-height: 1.7;
}

/* ===== 文字流光效果（通用） ===== */
h1,
h2,
.process-intro h2 {
    background-image: linear-gradient(120deg, #1a1a1a 0%, #3a3a3a 20%, #c9a84c 40%, #4a4a4a 60%, #1a1a1a 80%, #3a3a3a 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 0, 0, 0.1);
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 300% 0;
    }
}

/* 深色背景上的标题用白色流光 */
.process-highlights h2 {
    background-image: linear-gradient(120deg, #f5f1e8 0%, #c9a84c 40%, #f5f1e8 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
    animation: shimmer 6s linear infinite;
}

/* ----- 响应式 ----- */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .process-hero h1 {
        font-size: 50px;
        letter-spacing: -2px;
    }
    .process-hero p {
        font-size: 18px;
    }
    .process-intro h2 {
        font-size: 36px;
    }
    .process-intro p {
        font-size: 17px;
    }
    .process-grid {
        gap: 28px;
    }
    .menu a {
        margin-left: 18px;
    }
    .menu a span {
        font-size: 14px;
    }
    .logo {
        font-size: 18px;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 5% 60px;
    }
    .process-hero {
        height: 50vh;
        min-height: 350px;
    }
    .process-hero h1 {
        font-size: 38px;
    }
    .process-highlights h2 {
        font-size: 32px;
    }
    .highlight-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .process-intro {
        padding: 50px 5% 30px;
    }
    .process-intro h2 {
        font-size: 30px;
    }
    .process-item img {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .menu a {
        display: none;
    }
    .logo {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .process-hero h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }
    .process-hero p {
        font-size: 16px;
        margin-top: 12px;
    }
    .process-intro h2 {
        font-size: 26px;
    }
    .process-intro p {
        font-size: 16px;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    .process-item .info h3 {
        font-size: 20px;
    }
    .process-item .info .desc {
        font-size: 14px;
    }
    .process-highlights {
        padding: 50px 5%;
    }
    .process-highlights h2 {
        font-size: 26px;
    }
    .process-highlights > p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}
/* ===== 语言切换按钮样式 ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 30px;
    font-size: 14px;
}
.language-switcher .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}
.language-switcher .lang-btn:hover {
    color: #b8860b;
    background: rgba(184, 134, 11, 0.08);
}
.language-switcher .lang-btn.active {
    color: #b8860b;
    font-weight: 600;
    background: rgba(184, 134, 11, 0.1);
}
.language-switcher .lang-flag { font-size: 16px; }
.language-switcher .lang-name { font-size: 13px; }
.language-switcher .lang-divider { color: #ddd; }

/* 手机端适配：隐藏文字只显示国旗 */
@media (max-width: 768px) {
    .language-switcher { margin-left: 12px; }
    .language-switcher .lang-name { display: none; }
    .language-switcher .lang-flag { font-size: 18px; }
}
@media (max-width: 600px) {
    .language-switcher { margin-left: 8px; }
}